home *** CD-ROM | disk | FTP | other *** search
-
-
-
- iiiiooooccccttttllll((((2222)))) iiiiooooccccttttllll((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- _iiii_oooo_cccc_tttt_llll - control device
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_uuuu_nnnn_iiii_ssss_tttt_dddd_...._hhhh_>>>>
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_iiii_oooo_cccc_tttt_llll_...._hhhh_>>>> /* _SGIAPI FIO* functions */
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_tttt_rrrr_oooo_pppp_tttt_ssss_...._hhhh_>>>> /* STREAMS functions */
-
- _iiii_nnnn_tttt _iiii_oooo_cccc_tttt_llll _((((_iiii_nnnn_tttt _ffff_iiii_llll_dddd_eeee_ssss_,,,, _iiii_nnnn_tttt _rrrr_eeee_qqqq_uuuu_eeee_ssss_tttt_,,,, _...._...._...._))))_;;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _iiii_oooo_cccc_tttt_llll performs a variety of control functions on devices and STREAMS.
- For non-STREAMS files, the functions performed by this call are device-
- specific control functions. _r_e_q_u_e_s_t and an optional third argument with
- varying type are passed to the file designated by _f_i_l_d_e_s and are
- interpreted by the device driver.
-
- For STREAMS files, specific functions are performed by the _iiii_oooo_cccc_tttt_llll call as
- described in _ssss_tttt_rrrr_eeee_aaaa_mmmm_iiii_oooo(7). Argument types and other _r_e_q_u_e_s_t-specific
- information found in _ssss_tttt_rrrr_eeee_aaaa_mmmm_iiii_oooo(7) take precedence over information found
- in this manual page.
-
- _f_i_l_d_e_s is an open file descriptor that refers to a device. _r_e_q_u_e_s_t
- selects the control function to be performed and depends on the device
- being addressed. Many devices do not require that the device be opened
- in a writable mode in order to successfully perform _i_o_c_t_l_s that change
- the device parameters, or even the contents of the media for devices with
- permanent storage. _a_r_g represents a third argument that has additional
- information that is needed by this specific device to perform the
- requested function. The data type of _a_r_g depends upon the particular
- control request, but it is generally either an _iiii_nnnn_tttt or a pointer to a
- device-specific data structure.
-
- In addition to device-specific and STREAMS functions, generic functions
- are provided by more than one device driver, for example, the general
- terminal interface [see _tttt_eeee_rrrr_mmmm_iiii_oooo(7)].
-
- The following operations are generally available on all descriptors [see
- _ssss_tttt_rrrr_eeee_aaaa_mmmm_iiii_oooo(7)]:
-
- _FFFF_IIII_OOOO_NNNN_BBBB_IIII_OOOO Enables or disables non-blocking I/O on _f_i_l_d_e_s. _a_r_g is a
- pointer to an iiiinnnntttt whose value should be 1 to enable non-
- blocking I/O or 0 to disable non-blocking I/O. This
- operation is not currently supported on old-style (non-
- STREAMS) pipes.
-
- _FFFF_IIII_OOOO_NNNN_RRRR_EEEE_AAAA_DDDD Returns the number of bytes of data currently available to
- be read on _f_i_l_d_e_s. _a_r_g is a pointer to a ssssiiiizzzzeeee____tttt into
- which the byte-count will be stored unless the ioctl is
- called on a _ssss_oooo_cccc_kkkk_eeee_tttt. For _ssss_oooo_cccc_kkkk_eeee_tttt_ssss, the value returned is an
- iiiinnnntttt and _a_r_g is a pointer to an iiiinnnntttt.
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- iiiiooooccccttttllll((((2222)))) iiiiooooccccttttllll((((2222))))
-
-
-
- _iiii_oooo_cccc_tttt_llll fails for any type of file if one or more of the following are
- true:
-
- _EEEE_AAAA_CCCC_CCCC_EEEE_SSSS The type of access requested on the file designated by
- _f_i_l_d_e_s is denied.
-
- _EEEE_BBBB_AAAA_DDDD_FFFF _f_i_l_d_e_s is not a valid open file descriptor.
-
- _EEEE_NNNN_OOOO_TTTT_TTTT_YYYY _f_i_l_d_e_s is not associated with a device driver that accepts
- control functions.
-
- _EEEE_IIII_NNNN_TTTT_RRRR A signal was caught during the _iiii_oooo_cccc_tttt_llll system call.
-
- _iiii_oooo_cccc_tttt_llll also fails if the device driver detects an error. In this case,
- the error is passed through _iiii_oooo_cccc_tttt_llll without change to the caller. A
- particular driver might not have all of the following error cases. Under
- the following conditions, requests to device drivers may fail and set
- _eeee_rrrr_rrrr_nnnn_oooo to:
-
- _EEEE_FFFF_AAAA_UUUU_LLLL_TTTT _r_e_q_u_e_s_t requires a data transfer to or from a buffer
- pointed to by _a_r_g, but some part of the buffer is outside
- the process's allocated space.
-
- _EEEE_IIII_NNNN_VVVV_AAAA_LLLL _r_e_q_u_e_s_t or _a_r_g is not valid for this device.
-
- _EEEE_IIII_OOOO Some physical I/O error has occurred.
-
- _EEEE_NNNN_XXXX_IIII_OOOO The _r_e_q_u_e_s_t and _a_r_g are valid for this device driver, but
- the service requested can not be performed on this
- particular subdevice.
-
- _EEEE_NNNN_OOOO_LLLL_IIII_NNNN_KKKK _f_i_l_d_e_s is on a remote machine and the link to that machine
- is no longer active.
-
- _EEEE_TTTT_IIII_MMMM_EEEE_DDDD_OOOO_UUUU_TTTT _f_i_l_d_e_s is on a remote machine which is not available [see
- _iiii_nnnn_tttt_rrrr_oooo(2)].
-
- STREAMS errors are described in _ssss_tttt_rrrr_eeee_aaaa_mmmm_iiii_oooo(7).
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _ssss_tttt_rrrr_eeee_aaaa_mmmm_iiii_oooo(7), _tttt_eeee_rrrr_mmmm_iiii_oooo(7)
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Upon successful completion, the value returned depends upon the device
- control function, but must be a non-negative integer. Otherwise, a value
- of -1 is returned and _eeee_rrrr_rrrr_nnnn_oooo is set to indicate the error.
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-